<?php
function shms_core_form_add_submit_button_for_basic(&$form,$weight,$button_value){
  $form['submit'] = array(
    '#type' => 'submit',
    '#weight' => $weight,
    '#value' => $button_value,
  );
}

/* Validation Functions */
function shms_core_person_matric_number_is_correct_format($matric_no){
  return preg_match("/^[AU][0-9]{6,8}[A-Z]?/i", $matric_no);
  return TRUE;
}

function shms_core_person_email_address_is_correct_format($email_addr){
  // TODO: implement later
  return TRUE;
}

function shms_core_room_number_is_correct_format($room_number){
  return preg_match("/^[A-E][0-9]{3,3}$/", $room_number);
}
/* End of Valication Functions */


?>